<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      canvas {
        border: 1px solid #ccc;
        margin-right: 5px;
      }
    </style>
  </head>
  <body>
    <script>
      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'blur(4px)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'brightness(1.5)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'contrast(1.5)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'saturate(1.5)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'grayscale(1)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'sepia(1)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'invert(1)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'drop-shadow(10px 10px 10px #acf)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,50,50,200,200);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'hue-rotate(180deg)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();

      (() => {
        const canvas = document.createElement("canvas");
        canvas.width = 300;
        canvas.height = 300;
        document.body.append(canvas);

        const ctx = canvas.getContext("2d");

        ctx.filter = 'hue-rotate(180deg) contrast(1.5)';

        const img = new Image();
        img.src = '../imgs/04.png';
        img.onload = function(){
          ctx.drawImage(img,0,0,300,300);
        }

      })();
      
      

      
      
    </script>
  </body>
</html>
